package com.example.user.service;


import com.example.user.common.Result;
import com.example.user.entity.Order;
import com.example.user.mapper.OrderMapper;
import com.example.user.request.CartRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderService {


    @Autowired
    private OrderMapper orderMapper;

    public Result createOrder(CartRequest cartRequest) {

        return Result.success();
    }

    public List<Order> getOrderPage(Integer userId) {
      List<Order> orderList= orderMapper.getOrderPage(userId);
      return orderList;
    }
}
